<?php
//    session_start();
//    $user = array('useranem'=>'rongself','password'=>'123456');
//    if(!isValidata($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])){
//       $key = "you don't kown me.";
//       $_SESSION['authenticate']=$_POST['username'].','.md5($_POST['username'].$key);
//    }
////    if($_SERVER['REQUEST_METHOD']=='POST'){
////        echo 'hahah';
////    }
//    function isValidata($username,$password){
//        if($username==$user['username']&&$password==$user['password']){
//            return TRUE;
//        }
//        return FALSE;
//    }
echo 'login'.'</br>';
echo dirname(__FILE__).'</br>';
?>
<!--<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="POST">
            <p><input type="text" id="username" name="username"/></p>
            <p><input type="password" id="password" name="password"/></p>
            <p><input type="submit" value="登录"/></p>
        </form>
    </body>
</html>-->
